import BTDecoratorNode from "../BTDecoratorNode";
import { BTResult, RUNNING, FAILURE, SUCCESS } from "../BTEnum";
export default class BTInvert extends BTDecoratorNode {
    decorator(result: BTResult) {
        return result !== RUNNING ? result === FAILURE ? SUCCESS : FAILURE : result;
    }
}
